package App.Model;

import lombok.AccessLevel;
import lombok.Data;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by xw on 2018/11/12.
 */

@Data
@Entity
//@Immutable
@Table(name = "user")
public class User {

    @Setter(AccessLevel.PACKAGE)

    @Column(name = "id")
    @Id
    private int id;

    @Column(name = "nickname")
    private String nickname;

    @Column(name = "username")
    private String username;

    @Column(name = "password")
    private String password;

    @Column(name = "recstatus")
    private  int recstatus;




    public int getId() {
        return id;
    }

    public void setId(int id) {

        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }


    public  int getRecstatus(){ return  recstatus;}

    public  void  setRecstatus(int recstatus){
        this.recstatus=recstatus;
    }


    //select id,nickname,password,first_name,last_name from user;


}
